package com.sc.design.state;

/**
 * @author sc
 * Created on  2017/12/7
 */
public class RunState extends LiftState {
    @Override
    void open() {

    }

    @Override
    void close() {

    }

    @Override
    void run() {
        System.out.println("电梯运行");
    }

    @Override
    void stop() {
        super.context.setLiftState(Context.stop);
        super.context.getLiftState().stop();
    }
}
